import 'package:flutter/material.dart';

class ImageTile extends StatelessWidget {
  final String leading;
  final String title;
  final VoidCallback action;

  ImageTile({Key key, this.leading, this.title, this.action}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListTile(
      title: Text(title, style: TextStyle(color: Colors.black, fontSize: 16.0)),
      leading: ClipRRect(
        borderRadius: BorderRadius.circular(30),
        child: Image.network(
          leading,
          height: 60,
          width: 60,
          fit: BoxFit.fill,
        ),
      ),
      trailing: Icon(Icons.arrow_forward_ios),
      onTap: action,
    );
  }
}
